home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
comm
/
bbs
/
TA1_22.lha
/
Rexx
/
Logon.trans
< prev
next >
Wrap
Text File
|
1994-03-23
|
3KB
|
93 lines
/* Logon macro for TransAmiga
Asks user if he/she wishes to view the new message list. Then prompt
him/her to do a mail check, and allows the user to read and messages to
him/her. Also prompts for a new files listing.
*/
options results
options failat 10
CSI = '1b'x||'['
CRLF = '0d'x||'0a'x
FF = '0c'x
userinfo 'x' ; ansi=result
/* Initialize ANSI variables - useful code section for your ARexx macros. */
if ansi='ON' then do
OFF = CSI'0m' ; BO = CSI'1m' ; UL = CSI'4m' ; IT = CSI'3m'
CL1 = CSI'31m' ; CL2 = CSI'32m' ; CL3 = CSI'33m' ; CL4 = CSI'34m'
CL5 = CSI'35m' ; CL6 = CSI'36m' ; CL7 = CSI'37m'
end
else do
OFF = '' ; BO = '' ; UL = '' ; IT = ''
CL1 = '' ; CL2 = '' ; CL3 = '' ; CL4 = ''
CL5 = '' ; CL6 = '' ; CL7 = ''
end
if ~show('L',"rexxsupport.library") then
call addlib "rexxsupport.library",0,-30
/* check if the user has a transfer protocol choosen */
PRINT FF
USERINFO i /* get user's transfer protocol */
IF RESULT='0' THEN DO
USERINFO H /* get the language (in this case English is default and German the second one available) */
IF RESULT='DEFAULT' THEN DO
PRINT 'TransAmiga now offers a new feature: Transferprotocol is selected one'
PRINT 'time and then used for every transfer without the need to ask you'
PRINT 'again.'
LISTPROTOCOLS
QUERY 'Please enter the numer of the protocol you wish to use:'
END
ELSE DO
PRINT 'TransAmiga bietet nun die Moeglichkeit das Transferprotokoll einmalig'
PRINT 'einzustellen und es dann ohne weitere Neuanwahl bei jedem Transfer zu'
PRINT 'benutzen.'
LISTPROTOCOLS
QUERY 'Bitte Nummer des Transferprotokolls angeben, das sie benutzen wollen:'
END
SETPROTOCOL RESULT
END
/* Ask to see new message list */
queryy FF||CRLF||CL7||'View new message list'
answ = upper(result)
if ~carrier then exit 10
if answ ~= 'N' then newmsgs
/* Check for messages to the user. If any are found, ask if he/she wants */
/* to read them now, and if so, read all marked messages (since all found */
/* messages get automatically marked). */
queryn CRLF||CL7||'Check for messages to you'
answ = upper(result)
if ~carrier then exit 10
if answ = 'Y' then do
checkmsgs
if ~carrier then exit 10
if result=1 then do
queryy CL7||'Read these messages now'
answ = upper(result)
if ~carrier then exit 10
if answ ~= 'N' then readmarkedmsgs
end
end
queryn CRLF||CL7||'View new files'
answ = upper(result)
if ~carrier then exit 10
if answ = 'Y' then newfiles
print
exit